//
//  XKSimpleNote.m
//  SecurityNote
//
//  Created by HTC on 14-9-22.
//  Copyright (c) 2019年 XuKai. All rights reserved.
//

#import "XKSimpleNote.h"
#import "XKSimpleNoteTool.h"

@implementation XKSimpleNote

//懒加载！
-(NSMutableArray *)datas
{

    if (_datas == nil)
    {
        _datas = [NSMutableArray array];
        
    }
    
    return _datas;
    
}



-(NSMutableArray *)queryWithData
{
    return [XKSimpleNoteTool queryWithSql];
}


-(void)kk_upDateString:(NSString *)string forRowAtIndexPath:(NSIndexPath *)indexPath
{
    [XKSimpleNoteTool upDateWithString:string forRowAtIndexPath:indexPath];

}

-(void)insertDatas:(XKSimpleNote *)addNote
{

    [XKSimpleNoteTool insertDatas:addNote];
}


-(void)deleteString:(XKSimpleNote *)deleteStr
{

    [XKSimpleNoteTool deleteString:deleteStr];

}

-(void)upDateInsert:(XKSimpleNote *)upDateInsert
{
    [XKSimpleNoteTool upDateInsert:upDateInsert];
    
}

@end
